import http from 'axios';

const API = {
  GET_CATEGORY: '/api/v1/category/list', // 获取分类、标签
  GET_ARTICLE: '/api/v1/article/list', // 获取文章
  GET_USERS: '/api/v1/user/list', // 获取用户
};

export default {
  getArticle(params) {
    return http.get(API.GET_ARTICLE, { params })
  },
  getCategory(params) {
    return http.get(API.GET_CATEGORY, { params })
  },
  getUsers(params) {
    return http.get(API.GET_USERS, { params })
  }
}